package com.fengmi.service;

import com.fengmi.dto.PageDTO;
import com.fengmi.entity.MallGoodsSpec;
import com.fengmi.entity.MallGoodsSpecOptions;
import com.fengmi.vo.PageResultVO;
import com.fengmi.vo.ResultVO;

/**
 * @Author 123
 * @Date 2022/2/10 11:30
 * @Version 1.0
 */

public interface GoodsSpecOptionsService {
    //条件加分页查询所有的规格选项及规格信息
    public PageResultVO<MallGoodsSpecOptions> findSpecOptionsByPage(PageDTO<MallGoodsSpecOptions> pageDTO);

    //添加规格及规格选项
    public ResultVO saveSpecAndSpecOptions(MallGoodsSpec mallGoodsSpec);

    //通过id查找某一个规格选项
    public ResultVO selectOneBySpecOptionsId(String id);

    //修改规格选项
    public ResultVO updateOptions(MallGoodsSpecOptions mallGoodsSpecOptions);

    //通过id删除规格选项
    public ResultVO deleteOneById(String id);

    //查询所有规格信息
    public ResultVO selectAllSpec();
}
